package com.jiai.cloud.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.omg.CORBA.IDLType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author 佳爱科技
 * @since 2017-05-24
 */
@TableName("t_order")
public class TOrder extends Model<TOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId(value = "orderNo",type=IdType.INPUT)
	private String orderNo;
    /**
     * 支付退单编号
     */
	private String apleId;
    /**
     * 收件人ID
     */
	private String memberId;
    /**
     * 订单时间
     */
	private Date orderTime;
    /**
     * 订单金额
     */
	private Integer money;
    /**
     * 订单数量
     */
	private Integer state;
	/**
	 *用户ID
	 */
	private String userId;
	/**
	 * 收货人电话
	 */
	private String phone;
	/**
	 * 收货地址
	 */
	private String address;
	/**
	 * 收货人名字
	 */
	private String name;


	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getApleId() {
		return apleId;
	}

	public void setApleId(String apleId) {
		this.apleId = apleId;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Date getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public Integer getMoney() {
		return money;
	}

	public void setMoney(Integer money) {
		this.money = money;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	protected Serializable pkVal() {
		return this.orderNo;
	}

}
